

import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AccountComponentsCenterComponent } from './components/center/center.component';
import { AccountComponentsEditPayPasswordComponent } from './components/edit-paypassword/edit-paypassword.component'

const routes: Routes = [
  { path: '', redirectTo: 'center', pathMatch: 'full' },
  {
    path: 'center',
    component: AccountComponentsCenterComponent,
    data: {
      title: '账户中心'
    }
  },
  {
    path: 'edit-paypassword',
    component: AccountComponentsEditPayPasswordComponent,
    data: {
      title: '修改支付密码',
      titleI18n: 'app.my.edit.paypassword',
      // guard: {ability: ['accountcenter-editpaypassword']}
    },
  },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class AccountRoutingModule {}
